pkgname=libyaml
pkgver=0.1.7
pkgrel=1
pkgdesc="YAML 1.1 library"
arch="all"
url="http://pyyaml.org/wiki/LibYAML"
license="MIT"
source="http://pyyaml.org/download/$pkgname/${pkgname/lib/}-$pkgver.tar.gz"

build() {
	cd "$srcdir/${pkgname/lib/}-$pkgver"
	./configure --prefix=/usr
	make
}

package() {
	cd "$srcdir/${pkgname/lib/}-$pkgver"
	make DESTDIR="$pkgdir" install
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
sha512sums="1ee5007dd10db137b5ee80f8117f07390ec04af98d087a5f5475dd2b38d87c699b79ab1676e6c7bfa263323fcdf8edd69fada2b0b7f9c57bef4e46cd65f1e975  yaml-0.1.7.tar.gz"
